package app.base.commons;

import org.apache.log4j.PropertyConfigurator;

public class Logger {

	private static String LOG4J_CONFIG_FILENAME = "log4j.properties";
	
	private static org.apache.log4j.Logger logger;

	static {
		PropertyConfigurator.configure(LOG4J_CONFIG_FILENAME);
		
		logger = org.apache.log4j.Logger.getLogger(Logger.class.getName());
	}
	
	public static void debug(Object message) {
		logger.debug(message);
	}
	
	public static void warn(Object message) {
		logger.warn(message);
	}
	
	public static void info(Object message) {
		logger.info(message);
	}
	
	public static void error(Object message) {
		logger.error(message);
	}
}
